import request from '@/utils/axios';
import appName from "../appName"


// 二次核保主页面基本信息初始化查询
export function queryApi (data) {
    return request({
      url: appName.CLMBASE + '/clm/reAudit/query',
      method: 'post',
      data: data
    })
}

// 获取最大序列号并且保存新增数据
export function getReUnderwriteCb3clickC2Api (data) {
  return request({
    url: appName.CLMBASE + '/clm/reAudit/getReUnderwriteCb3clickC2',
    method: 'post',
    data: data
  })
}

// 二核新增续期核保模块 保存
export function saveRenewApi (data) {
  return request({
    url: appName.CLMBASE + '/clm/reAudit2/saveRenew',
    method: 'post',
    data: data
  })
}

// 新增续期核保页面--先查保单列表
export function getChdrnumListApi (data) {
  return request({
    url: appName.CLMBASE + '/clm/reAudit2/getChdrnumList',
    method: 'post',
    data: data
  })
}

// 新增续期核保页面--先查保单列表
export function initRenewApi (data) {
  return request({
    url: appName.CLMBASE + '/clm/reAudit2/initRenew',
    method: 'post',
    data: data
  })
}
// 新增续期核保页面--查询最大二核序号
export function getReUnderwriteCb4clickC1Api (data) {
  return request({
    url: appName.CLMBASE + '/clm/reAudit2/getReUnderwriteCb4clickC1',
    method: 'post',
    data: data
  })
}
// 二次核保主页面--删除选中的续赔核保数据
export function delReAuditApi (data) {
  return request({
    url: appName.CLMBASE + '/clm/reAudit/delReAudit',
    method: 'post',
    data: data
  })
}

// 提交前进行产品验证--提交续期核保时校验停售后重新备案整改的产品
export function valiCrtableApi (data) {
  return request({
    url: appName.CLMBASE + '/clm/reAudit/valiCrtable',
    method: 'post',
    data: data
  })
}


// 提交前进行产品验证--提交续期核保时校验停售后重新备案整改的产品
export function auditeApi (data) {
  return request({
    url: appName.CLMBASE + '/clm/reAudit2/audit',
    method: 'post',
    data: data
  })
}

//解除提交
export function unAuditApi (data) {
  return request({
    url: appName.CLMBASE + '/clm/reAudit2/unAudit',
    method: 'post',
    data: data
  })
}

//主页面点击补充续期核保按钮时，调用查询是否存在Q类照会,通过才能打开补充续期核保页面. 否则二次确认后跳转到照会页面
export function getReUnderwriteCb4clickC2andC3Api (data) {
  return request({
    url: appName.CLMBASE + '/clm/reAudit2/getReUnderwriteCb4clickC2andC3',
    method: 'post',
    data: data
  })
}



//跳转到照会页面
export function getNoteInformationApi (data) {
  return request({
    url: constant.clmnote + '/note/pending/getNoteInformation',
    method: 'post',
    data: data
  })
}

//补充核保的查询按钮
export function searchApi (data) {
  return request({
    url: appName.CLMBASE + '/clm/reAudit2/search',
    method: 'post',
    data: data
  })
}


//原因按钮
export function queryCauseApi (data) {
  return request({
    url: appName.CLMBASE + '/clm/reAudit2/queryCause',
    method: 'post',
    data: data
  })
}

//核保处理信息-- 变更内容
export function goChangeApi (data) {
  return request({
    url: appName.CLMBASE + '/clm/reAudit2/goChange',
    method: 'post',
    data: data
  })
}

//补充核保--保存按钮
export function saveReunderwriteApi (data) {
  return request({
    url: appName.CLMBASE + '/clm/reAudit2/saveReunderwrite',
    method: 'post',
    data: data
  })
}

//补充核保--（原因）保存按钮
export function saveChangeCauseApi (data) {
  return request({
    url: appName.CLMBASE + '/clm/reAudit2/saveChangeCause',
    method: 'post',
    data: data
  })
}


//核保结论--拼接标注信息的险种名称查询
export function findZpshortcFromLcckByCrtableApi (data) {
  return request({
    url: appName.CLMBASE + `/clm/reAudit2/findZpshortcFromLcckByCrtable?crtable=${data.crtable}`,
    method: 'post',
    data: data
  })
}


//核保结论--拼接标注信息的险种名称查询
export function countCrtableFromEufopfBycrtableApi (data) {
  return request({
    url: appName.CLMBASE + `/clm/reAudit2/countCrtableFromEufopfBycrtable?crtable=${data.crtable}`,
    method: 'post',
    data: data
  })
}



//提交二核按钮
export function submitReunderwriteApi (data) {
  return request({
    url: appName.CLMBASE + '/clm/reAudit2/submitReunderwrite',
    method: 'post',
    data: data
  })
}


//删除二核 按钮的接口
export function deleteReunderwriteApi (data) {
  return request({
    url: appName.CLMBASE + '/clm/reAudit2/deleteReunderwrite',
    method: 'post',
    data: data
  })
}


//新增补充核保按钮的接口
export function existQlPendingAndSaveApi (data) {
  return request({
    url: appName.CLMBASE + '/clm/reAudit2/existQlPendingAndSave',
    method: 'post',
    data: data
  })
}



//重新二核 
export function reOpenReunderwriteApi(data) {
  return request({
    url: appName.CLMBASE + '/clm/reAudit2/reOpenReunderwrite',
    method: 'post',
    data: data
  })
}

//补充核保--理赔意见--保单号点击事件查询保单详细清单
export function policyQueryListApi(data) {
  return request({
    url: appName.CLMBASE + '/clm/reAudit2/policyQueryList',
    method: 'post',
    data: data
  })
}

//结案按钮
export function buryCaseApi(data) {
  return request({
    url: appName.CLMBASE + '/clm/reAudit2/buryCase',
    method: 'post',
    data: data
  })
}

//解除结案按钮
export function unBuryCaseApi(data) {
  return request({
    url: appName.CLMBASE + '/clm/reAudit2/unBuryCase',
    method: 'post',
    data: data
  })
}

//解除理赔确认按钮
export function releaseCaseConfirmApi(data) {
  return request({
    url: appName.CLMBASE + '/clm/reAudit2/releaseCaseConfirm',
    method: 'post',
    data: data
  })
}

//送理赔科确认 检查加费金额
export function countLcfdByClmnumChksnoApi(data) {
  return request({
    url: appName.CLMBASE + '/clm/reAudit2/countLcfdByClmnumChksno',
    method: 'post',
    data: data
  })
}

//送理赔科确认 检查除外内容
export function countLcfdByClmnumChksnoCmntdescTrectypApi(data) {
  return request({
    url: appName.CLMBASE + '/clm/reAudit2/countLcfdByClmnumChksnoCmntdescTrectyp',
    method: 'post',
    data: data
  })
}

//送理赔科确认
export function goEuisClaimConfirmApi(data) {
  return request({
    url: appName.CLMBASE + '/clm/reAudit2/goEuisClaimConfirm',
    method: 'post',
    data: data
  })
}

//解除理赔确认
export function cancelEuisClaimConfirmApi(data) {
  return request({
    url: appName.CLMBASE + '/clm/reAudit2/cancelEuisClaimConfirm',
    method: 'post',
    data: data
  })
}

//作废/取消作废续期核保
export function abandonSelectApi(data) {
  return request({
    url: appName.CLMBASE + '/clm/reAudit/abandonSelect',
    method: 'post',
    data: data
  })
}


//获得阳性发现的提示信息
export function checkMasculineAlertApi(data) {
  return request({
    url: appName.CLMBASE + '/clm/reAudit2/checkMasculineAlert',
    method: 'post',
    data: data
  })
}


//加费情况下调
export function callClm034Api(data) {
  return request({
    url: appName.CLMBASE + '/clm/reAudit2/callClm034',
    method: 'post',
    data: data
  })
}

//核保结论-根据系统日期、保单生效日计算变更生效期 
export function wfAnunityApi(data) {
  return request({
    url: appName.CLMBASE + '/clm/reAudit2/wfAnunity',
    method: 'post',
    data: data
  })
}

//契约获取 获取二核号成功 
export function getChksnoApi(data) {
  return request({
    url: appName.CLMBASE + '/clm/reAudit/getChksno',
    method: 'post',
    data: data
  })
}

//承保内容变更通知书
export function changeNoticeApi(data) {
  return request({
    url: appName.CLMBASE + '/clm/reAudit2/changeNotice',
    method: 'post',
    data: data
  })
}


//契约获取理赔二核列表数据
export function queryClmApi(data) {
  return request({
    url: appName.CLMBASE + '/euis/taskList/query',
    method: 'post',
    data: data
  })
}


//契约结束二次核保流程
export function endSubTaskApi(data) {
  return request({
    url: appName.CLMBASE + '/euis/taskList/endSubTask',
    method: 'post',
    data: data
  })
}

//加锁
export function lockApi(data) {
  return request({
    url: appName.CLMBASE + '/euis/taskList/lock',
    method: 'post',
    data: data
  })
}


//解锁
export function unlockApi(data) {
  return request({
    url: appName.CLMBASE + '/euis/taskList/unLock',
    method: 'post',
    data: data
  })
}
